import { functionCommon, requestCommon } from "@whzhuke/common"

export default {
  queryLogBusinessTypeList: (params: any) => {
    return requestCommon.get<any>({
      url: `${functionCommon.requestHost("api")}/v1/m/log/business/types`,
      params
    })
  },
  list: (params: any) => {
    return requestCommon.get<any>({
      url: `${functionCommon.requestHost("api")}/v1/m/log`,
      params
    })
  },
  getRequestMethod: (params: any) => {
    return requestCommon.get<any>({
      url: `${functionCommon.requestHost("api")}/v1/m/log/request/method`
    })
  },
  item: (params: any) => {
    return requestCommon.get<any>({
      url: `${functionCommon.requestHost("api")}/v1/m/log/${params.id}`
    })
  }
}
